home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- ##
- ## installconf: Jan 1995
- ##
-
- if [ ! -f ./snmpd.conf -o ! -f ./installconf ] ; then
- echo ""
- echo "please run me from the \`\`cmu-snmp2.1.2l3/etc'' directory"
- echo ""
- exit 1
- fi
-
- if [ $# != 2 ] ; then
- echo ""
- echo "use: $0 <hostname> <ip-addr>"
- echo ""
- echo "with your hostname and ip-address to install the cmu-snmp config-files."
- echo ""
- exit 1
- fi
-
- cnf="acl.conf party.conf context.conf view.conf snmpd.conf mib.txt"
-
- for f in $cnf ; do
- echo "installing /etc/$f"
- sed -e 's/134.169.234.29/'"$2"'/g' -e 's/chappell/'"$1"'/g' \
- < $f > /etc/$f
- done
-
- echo done.
-